﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FeedBacks.aspx.cs" Inherits="HumanResorcesProj.GUI.Extensions.FeedBacks" MasterPageFile="~/GUI/MasterOfPopUps.Master" %>


<asp:Content ID="Content1" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head >
        <title></title>
    </head>
    <body>
        <form id="form1" >
        <div>
        
            <table dir="rtl" style="width:100%;">
                <tr>
                    <td style="width: 36px">
                        &nbsp;</td>
                    <td style="width: 716px">
                        שם העובד:&nbsp;
                        <asp:TextBox ID="TextBox1" runat="server" Width="237px" ReadOnly="True"></asp:TextBox>
                    </td>
                    <td style="width: 716px">
                        תז:
                        <asp:TextBox ID="TextBox2" runat="server" Height="22px" Width="236px" 
                            ReadOnly="True" ontextchanged="TextBox2_TextChanged"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 36px">
                        &nbsp;</td>
                    <td colspan="2" style="width: 716px">
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 36px">
                        &nbsp;</td>
                    <td colspan="2" style="width: 716px">
                        <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
                            DataKeyNames="SerialNum" DataSourceID="convDataBase" DefaultMode="Insert" 
                            Height="77px" Width="712px">
                            <Fields>
                                <asp:BoundField DataField="EmpID" HeaderText="EmpID" SortExpression="EmpID" 
                                    Visible="False" />
                                <asp:BoundField DataField="SerialNum" HeaderText="SerialNum" ReadOnly="True" 
                                    SortExpression="SerialNum" />
                                <asp:BoundField DataField="InitiatorName" HeaderText="InitiatorName" 
                                    SortExpression="InitiatorName" />
                                <asp:BoundField DataField="ConvDate" HeaderText="ConvDate" 
                                    SortExpression="ConvDate" />
                                <asp:BoundField DataField="ConvLocation" HeaderText="ConvLocation" 
                                    SortExpression="ConvLocation" />
                                <asp:BoundField DataField="PresentInDiscussion" 
                                    HeaderText="PresentInDiscussion" SortExpression="PresentInDiscussion" />
                                <asp:BoundField DataField="ConversationContext" 
                                    HeaderText="ConversationContext" SortExpression="ConversationContext" />
                                <asp:BoundField DataField="ConvSummary" HeaderText="ConvSummary" 
                                    SortExpression="ConvSummary" />
                                <asp:CommandField ShowInsertButton="True" />
                            </Fields>
                        </asp:DetailsView>
                        <asp:SqlDataSource ID="convDataBase" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:Eden-DatabaseConnectionString3 %>" 
                            InsertCommand="INSERT INTO EmpConversation(EmpID, SerialNum, InitiatorName, ConvDate, ConvLocation, PresentInDiscussion, ConversationContext, ConvSummary) VALUES (@EmpID, NEWID(), @InitiatorName, @ConvDate, @ConvLocation, @PresentInDiscussion, @ConversationContext, @ConvSummary)" 
                            SelectCommand="SELECT EmpID, SerialNum, InitiatorName, ConvDate, ConvLocation, PresentInDiscussion, ConversationContext, ConvSummary FROM EmpConversation">
                            <InsertParameters>
                                <asp:Parameter Name="EmpID" />
                                <asp:Parameter Name="InitiatorName" />
                                <asp:Parameter Name="ConvDate" />
                                <asp:Parameter Name="ConvLocation" />
                                <asp:Parameter Name="PresentInDiscussion" />
                                <asp:Parameter Name="ConversationContext" />
                                <asp:Parameter Name="ConvSummary" />
                            </InsertParameters>
                        </asp:SqlDataSource>
                        <asp:ObjectDataSource ID="ConcDataSource" runat="server" 
                            InsertMethod="insertConv" SelectMethod="getdataByID" 
                            TypeName="HumanResorcesProj.BLL.conv">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="TextBox2" Name="EmpID" PropertyName="Text" 
                                    Type="String" />
                            </SelectParameters>
                            <InsertParameters>
                                <asp:Parameter Name="EmpID" Type="String" />
                                <asp:Parameter Name="InitiatorName" Type="String" />
                                <asp:Parameter Name="ConvDate" Type="String" />
                                <asp:Parameter Name="ConvLocation" Type="String" />
                                <asp:Parameter Name="PresentInDiscussion" Type="String" />
                                <asp:Parameter Name="ConversationContext" Type="String" />
                                <asp:Parameter Name="ConvSummary" Type="String" />
                            </InsertParameters>
                        </asp:ObjectDataSource>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
        
        </div>
        </form>
    </body>
    </html>
</asp:Content>